import icom.acm.demo.serverpush.form.UserForm;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;


public class test {
	public static void main(String[] arg){
		UserForm uf = new UserForm();		
		String clsname = "icom.acm.demo.serverpush.action.UserAction";
		String action = "login";
		try {
			Class<?> cls = Class.forName(clsname);
			Method mtd = cls.getMethod("login", uf.getClass());
			mtd.invoke(cls.newInstance(), uf);
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		} catch (SecurityException e) {
			e.printStackTrace();
		} catch (NoSuchMethodException e) {
			e.printStackTrace();
		} catch (IllegalArgumentException e) {
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			e.printStackTrace();
		} catch (InvocationTargetException e) {
			e.printStackTrace();
		} catch (InstantiationException e) {
			e.printStackTrace();
		}
	}
}
